{
  "properties" : { },
  "id" : "1e3e5a24a28645188f40d25ac72e8ecb",
  "script" : null,
  "groupId" : "db1752dae044456b895d5a690a0f498d",
  "name" : "删除部署",
  "createTime" : null,
  "updateTime" : 1744481784907,
  "lock" : null,
  "createBy" : null,
  "updateBy" : "可辉",
  "path" : "delete",
  "method" : "DELETE",
  "parameters" : [ {
    "name" : "deploymentId",
    "value" : "59543012-17be-11f0-96fb-f4b3016ece8b",
    "description" : null,
    "required" : true,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 500,\n    \"msg\": \"Could not find a deployment with id '59543012-17be-11f0-96fb-f4b3016ece8b'.\"\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import 'org.activiti.engine.RepositoryService' as repositoryService;

try {
    repositoryService.deleteDeployment(deploymentId, false);
} catch(e) {
    exit 500, e.message
}